<template>
  <view class="customer-service">
    <view v-for="(item, index) in pages" :key="index">
      <template v-if="item.name == 'customer-service'">
        <w-customer-service :content="item.content" :styles="item.styles" />
      </template>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return { pages: [] };
  },
  onLoad() {
    this.getData();
  },
  methods: {
    async getData() {
      const data = await uni.$u.api.getDecorate({ id: 3 });
      this.pages = JSON.parse(data.data);
    }
  }
};
</script>

<style></style>
